﻿using System.Collections.Generic;
using NHibernate;

namespace HinduShop.DbClassLib
{
    public interface IRepository<T>
    {
        void SaveItem(T item);

        T ReadById(int id);

        T ReadByName(string columnName, string objName);
        
        IEnumerable<T> ReadAll();

        void DeleteItem(T item);

        void UpdateItem(T item);

        //ITransaction BeginTransaction();
    }
}
